// 写我们后端接口
import Mock from 'mockjs'
import student from './studentData'
import money from './moneyData'
import lessons from './lessonDatas'
import lesson from './lessonData'
// 参数1 接口名称的正则  参数2 请求类型  参数3 返回的数据
Mock.mock(/\/getstudent/, 'get', student.getStudentData)
// 删除单个
Mock.mock(/\/delete/, 'post', student.deleteDate)
// 开启单个
// Mock.mock(/\/open/, 'post', student.openDate)
/* 修改接口 */
Mock.mock(/\/updatehander/, 'post', student.updateData)
// 批量删除
Mock.mock(/\/batchdelete/, 'post', student.batchDeleteData)
// 参数1 接口名称的正则  参数2 请求类型  参数3 返回的数据
Mock.mock(/\/getmoney/, 'get', money.getMoneyData)
// 批量删除
Mock.mock(/\/batchdelete/, 'post', money.batchDeleteData)
/* 修改接口 */
Mock.mock(/\/updatehander/, 'post', money.updateData)
// 参数1 接口名称的正则  参数2 请求类型  参数3 返回的数据
Mock.mock(/\/getlessons/, 'get', lessons.getLessonData)
// 批量删除
Mock.mock(/\/lessondelete/, 'post', lessons.lessonDeleteData)
/* 修改接口 */
Mock.mock(/\/lessonupdate/, 'post', lessons.updateLessonData)

Mock.mock(/\/lesson/,'get',lesson.getHomeData);
// 删除单个
Mock.mock(/\/delete/,'post',lesson.deleteData);
// 删除多个
Mock.mock(/\/batchdelete/,'post',lesson.batchdeleteData);
/* 修改接口 */
Mock.mock(/\/updatehander/,'post',lesson.updateData)
